package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.YearlyInspectionBean;
import com.molichuxing.services.infrastructure.bean.YearlyInspectionLogBean;
import com.molichuxing.services.infrastructure.dto.response.YearlyInspectionLogCountDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 车牌表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2020-05-08
 */
public interface YearlyInspectionLogMapper extends RootMapper<YearlyInspectionLogBean> {

    /**
     * 年检记录
     *
     * @param carId
     * @return
     */
    public List<YearlyInspectionLogBean> getYearlyInspectionsLogListByCarId(@Param("carId") Integer carId);

    public int createBatch(List<YearlyInspectionLogBean> YearlyInspectionLogList);

    public List<YearlyInspectionLogCountDto> getYearlyInspectionLogCount(@Param("carIdList") List<Integer> carIdList);

    public YearlyInspectionLogBean getNewYearlyInspectionLogByCarId(@Param("carId") Integer carId);

}